package com.yc.navy.goods.feign.controller;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yc.navy.goods.dto.ShopInfoDTOO;
import com.yc.navy.goods.service.IShopInfoService;


@RestController
@RequestMapping("/shoper")
public class ShopFeignClientController {
	@Autowired
	private IShopInfoService shopInfoService;
	
	@RequestMapping("/shopone")
	ShopInfoDTOO Shopone(@RequestParam Integer sid) {
		ShopInfoDTOO shop = shopInfoService.ShopOne(sid);
		
		ShopInfoDTOO shop1 = new ShopInfoDTOO();
		BeanUtils.copyProperties(shop, shop1);
		return shop1;
	}
	
}
